import Http from "@/http";

export function saveApi(params:any) {
    return params.id ? Http.put('app/category/update/' + params.id, params) : Http.post('app/category/add', params)
}


export function deleteApi(id) {
    return Http.delete('app/category/delete/' + id)
}


export function listApi() {
    return Http.get('app/category/list')
}

export function optionsApi() {
    return Http.get('app/category/options')
}